package com.test.eventbus;

import com.google.common.eventbus.AllowConcurrentEvents;
import com.google.common.eventbus.Subscribe;

public class SecondSubscriber {

    @Subscribe
    @AllowConcurrentEvents
    public void test(EventObject obj) {
        System.out.println("Second setest " + obj.getName());
    }

    @Subscribe
    @AllowConcurrentEvents
    public void handleSecondEvent(SecondEvent secondEvent) {
        System.out.println("handleSecondEvent --- " + secondEvent.getName());
    }
}
